﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Entity
{
    public class SuccessCodes
    {
        public string GetSuccessCode(int Code)
        {
            switch(Code)
            {
                case 100: return "Registration succeed";
                case 101: return "Login succeed";
                case 102: return "List Games succeed";
                case 103: return "Join to game succeed";
                case 104: return "New game creation succeed";
                case 105: return "Get msg succeed";
                case 106: return "Send msg succeed";
                case 107: return "Giving up succeed";
                case 108: return "Step succeed";
                case 109: return "Step succeed, piece become king";
                case 110: return "Closing game succeed";
                case 111: return "Logout succeed";
                case 112: return "Games are listed";
                case 113: return "Player stats sucessfully sent";
                case 114: return "The game is started";
                case 115: return "Step succeed, you win";
                default: return "Unknown code";
            }
        }
    }
}
